package config

import (
	"net"

	"databasex"
	"databasex/dbx"
)

//"%s:%s@tcp(%s:%v)/%s?charset=utf8mb4&tls=%v"

var Mysql = dbx.Mysql{
	DataBase: dbx.DataBase{
		UserName: MysqlUser,
		Password: MysqlPassword,
		Address:  "tcp(" + net.JoinHostPort(databasex.ServerConfig.Host, "3306") + ")",
		DbName:   MysqlDatabase,
	},
	Ssl: dbx.TLS{},
}

const (
	MysqlUser     = "root"
	MysqlPassword = "123456"
	MysqlDatabase = "test"
)
